# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

_author=VIPUL
_perlmod=Convert-ASCII-Armour
pkgname=perl-convert-ascii-armour
pkgver=1.4
pkgrel=16
pkgdesc="Converts binary octets into ASCII armoured messages"
arch=('any')
url='http://search.cpan.org/~VIPUL/Convert-ASCII-Armour-1.4/'
license=('GPL' 'PerlArtistic')
depends=('perl' 'gmp')
options=(!emptydirs)
source=("http://cpan.perl.org/modules/by-authors/id/V/VI/$_author/$_perlmod-$pkgver.tar.gz")
sha512sums=('ba3b26dc440099374a60b374e4c1f92c0824388b7247f5cd0fd3403d6c2b7c3e916bb0cb98654e4a215352bae5728d3db239d657964695ae4e9be6a44c484a34')

build() {
  cd "$_perlmod-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd "$_perlmod-$pkgver"

  make install DESTDIR="$pkgdir"
}

